interface ResponseData {
    code: number;
    message: string;
    ok: boolean;
}
//权限菜单
export interface Permission {
    id?: number;
    createTime: string;
    updateTime: string;
    pid: number;
    name: string;
    code: string;
    toCode?: string;
    type: number;
    status?: any;
    level: number;
    children?: PermissionList;
    select: boolean;
}
export type PermissionList = Permission[]
export interface PermissionResponseData extends ResponseData{
    data: PermissionList;
}
//添加或修改菜单选项
export interface MenuParams{
    code: string;
    level: number;
    pid: number;
    name: string;
    id?: number|string;
}